import request from '@/utils/request'
import { ResultVoid, DeepRequired, EmailAndCaptchaDto } from '../../interface'

/**
 * 绑定邮箱
 * /user/email
 */
export function postUserEmail(input: EmailAndCaptchaDto) {
  return request.post<DeepRequired<ResultVoid>>(`/user/email`, input)
}
